package com.hrt.bean;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class PayType {
	private static List<Map<String,Object>> typeList;
	
	public final static Integer PAY_ONLINE=0;
	public final static Integer PAY_OFFLINE=1;
	
	public static List<Map<String, Object>> getTypeList() {
		if(typeList==null){
			typeList = new ArrayList<Map<String,Object>>();
			Map<String,Object> map=new HashMap<String,Object>();
			map.put("sta_key", PAY_ONLINE);
			map.put("sta_val", "电子付款");
			
			Map<String,Object> map1=new HashMap<String,Object>();
			map1.put("sta_key", PAY_OFFLINE);
			map1.put("sta_val", "货到付款");
			typeList.add(map);
			typeList.add(map1);
		}
		return typeList;
	}
	public static void setTypeList(List<Map<String, Object>> typeList) {
		
		PayType.typeList = typeList;
	}
	
}
